export default {
    template:`
    <div class="user-card" >
        <div class="head">
            <img :src="$attrs.user.img" alt="">
        </div>
        <div class="info">
            <div class="row">
                <span>编号</span>
                <span>{{ $attrs.user.No }}</span>
            </div>
            <div class="row">
                <span>姓名</span>
                <span>{{ $attrs.user.name }}</span>
            </div>
            <div class="row">
                <span>性别</span>
                <span>{{ $attrs.user.sex }}</span>
            </div>
            <div class="row">
                <span>手机号</span>
                <span>{{ $attrs.user.tel }}</span>
            </div>
        </div>
    </div>
    `,
    data() {
        return {
            user:{
                name:"tom"
            }
        }
    },
    mounted () {
        console.log(this.$attrs)
    },
}